package com.lkc.mapper;

import com.lkc.bean.ShoppingCar;
import com.lkc.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShoppingCarDao {

    int add(@Param("param") ShoppingCar shoppingCar);

    int del(@Param("id") Integer carId);

    int edit(@Param("param") ShoppingCar shoppingCar);

    ShoppingCar one(@Param("id") Integer carId);

    List<ShoppingCar> all(@Param("param") ShoppingCar shoppingCar);

    int pageCount(@Param("param") ShoppingCar shoppingCar);

    List<ShoppingCar> page(@Param("page") Page page, @Param("param") ShoppingCar shoppingCar);
}
